import port from '../../utils/port'
/**
 * （不建议写成 request.post(xxx)，因为这样 post 时，无法 params 与 data 同时传参）
 *
 * 
 * @method scenic 管理
 * 
 */
// 游玩管理列表
export const active = (headers,data) => {
    return port({
        url: '/pc/scenic/classify',
        method: 'post',
    headers:headers,
    data
    })
}


// 游玩添加
export const activeAdd = (token, data) => {
    return port({
        url: '/pc/scenic/classAdd',
        method: 'post',
        headers: token,
        data
    })
}

// 游玩删除
export const activeDel = (token, data) => {
    return port({
        url: '/pc/scenic/classDel',
        method: 'post',
        headers: token,
        data
    })
}
// 游玩景区
export const scienList = (token, data) => {
    return port({
        url: '/pc/scenic/index',
        method: 'post',
        headers: token,
        data
    })
}
// 游玩上下架
export const ticketStatus = (token, data) => {
    return port({
        url: '/pc/scenic/upIndex',
        method: 'post',
        headers: token,
        data
    })
}
// 游玩景区编辑
export const asst_add = (token, data) => {
    return port({
        url: '/pc/scenic/add',
        method: 'post',
        headers: token,
        data
    })
}
// 游玩门票列表
export const ticlist = (token, data) => {
    return port({
        url: '/pc/scenic/ticket',
        method: 'post',
        headers: token,
        data
    })
}
// 游玩门票上下架
export const status_up = (token, data) => {
    return port({
        url: '/pc/scenic/upTicket',
        method: 'post',
        headers: token,
        data
    })
}
// 游玩门票添加/编辑
export const status_add = (token, data) => {
    return port({
        url: '/pc/scenic/ticketAdd',
        method: 'post',
        headers: token,
        data
    })
}
// 游玩门票删除
export const ticket_del = (token, data) => {
    return port({
        url: '/pc/scenic/ticketDel',
        method: 'post',
        headers: token,
        data
    })
}
